<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTableWxusers extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('wxusers', function (Blueprint $table) {
			$table->increments('id');
			$table->integer('six_id')->default(-1)->comment('六度id');
			$table->string('phone', 11)->nullable()->comment('六度账号');
			$table->string('open_id', 55)->comment('wx唯一码');
			$table->string('name', 55)->nullable()->comment('微信名');
			$table->text('avatar')->nullable()->comment('微信头像');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('wxusers');
	}
}
